package com.google.code.jholidays.io.xml;

import java.util.List;

import com.google.code.jholidays.core.EventDescriptor;


/**
 * Represents call-back interface for {@link SaxParser}.
 * <p>
 * When parser completes parsing XML file it calls
 * {@link #collectionParsed(List)} on concrete implementation of this interface
 * in order to signal that parsing input file has been completed
 * 
 * @see SaxParser
 * @author tillias
 * 
 */
public interface IParserDirector {
    /**
     * Method is called by {@link SaxParser} in order to indicate that input XML
     * file has been successfully parsed
     * 
     * @param list
     *            List of {@link EventDescriptor} that has been parsed from
     *            input XML file
     */
    void collectionParsed(List<EventDescriptor> list);
}
